package com.shenghui.enterprise.base.mapper;

import com.shenghui.enterprise.base.entity.BaseDataDictionary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: 字典主表数据访问接口
 * @Author houjh
 * @Email: happyxiaohou@gmail.com
 * @Date: 2020-06-01
 * @Copyright (c) 2020-2022 云南昇晖科技有限公司
 */
@Mapper
public interface BaseDataDictionaryMapper extends BaseMapper<BaseDataDictionary> {

    Map<String,Object> getDictionaryById(@Param("id") String id);

    List<Map> getDataDictionaryDetailListByCode(String code);

    Map getDicDetailByCode(@Param("pCode")String pCode, @Param("iCode")String iCode);

    List<Map> getAllDataListByCode(@Param("code") String code);

}